package net.hserver.oauth.config;

import cn.dev33.satoken.config.SaTokenConfig;
import cn.hserver.core.ioc.annotation.Bean;
import cn.hserver.core.ioc.annotation.Configuration;

@Configuration
public class SaTokenConfiguration {

    @Bean
    public SaTokenConfig saTokenConfig(){
        SaTokenConfig saTokenConfig = new SaTokenConfig();
        //自定义token时这里没啥用
        saTokenConfig.setJwtSecretKey("asdasdasifhueuiwyurfewbfjsdafjk");
        //在oidc中iss 是一個地址需要指定具体url路径
        saTokenConfig.setCurrDomain("http://127.0.0.1:8888");
        return saTokenConfig;
    }
}
